function isShowTime (timestamp) {
  const currentTime = new Date();
  console.log("🚀 ~ file: index.js:108 ~ isShowTime ~ currentTime:", currentTime)
  const timestampDate = new Date(timestamp);
  const isNullTimestamp = !timestamp;
  const isDifferentDate = currentTime.toDateString() !== timestampDate.toDateString();
  const isOverFiveMinutes = Math.abs(currentTime.getTime() - timestampDate.getTime()) >= (5 * 60 * 1000);

  // 返回对象结构更清晰
  const info = {
    time: isDifferentDate || isOverFiveMinutes ? new Date(timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) : '',
    timestamp: isNullTimestamp ? currentTime.getTime() : timestamp
  };
  if (info.time === 'Invalid Date') {
    info.time = '';
  }
  console.log("🚀 ~ file: index.js:0 ~ getTimeAndDateInfo ~ info:", info);
  return info;
}
isShowTime('')

isShowTime(1703736025000)
isShowTime(1703735360894)